package org.test.controller;


import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class MyAspect {


    @Pointcut("execution(public * * (..))")
    public void getMethod(){

        System.out.println("execution");
    }

    @Before("execution(public * org.test.controller.TestController.*(..))")
    public void beforeMethod(){

        System.out.println("before");
    }
}
